package entity;

import javax.persistence.Table;

/**
 * @author:wmx 2025-03-19 09:41
 *
 * 1、功能:
 * 2、参数{
 * <p>
 * <p>
 * }
 **/

@Table(name = "user") // 指定数据库表名为 "users"
public class Student {
    private String name;
    private  int age;
    private Double score;

    public Student() {
    }

    public Student(String name, int age, Double score) {
        this.name = name;
        this.age = age;
        this.score = score;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Double getScore() {
        return score;
    }

    public void setScore(Double score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", score=" + score +
                '}';
    }
}
